package com.gaoxin.api.service.statisservice;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gaoxin.api.dao.statismapper.StatisClassStuMapper;
import com.gaoxin.api.entity.statisentity.Classroom;
import com.gaoxin.api.entity.statisentity.StudentInfo;
/**
 * 班级学生信息统计
 * @author zhaozhenshe
 *2018-07-14
 */
@Service
public class StatisClassStuService {
	@Autowired
	private StatisClassStuMapper statusClassStuMapper;
	/**
	 * 根据班级Id查询改班级所有学生信息
	 * @return
	 */
	public List<StudentInfo> queryStudentListByClassId(String classId)throws Exception{
		return statusClassStuMapper.queryStudentListByClassId(classId);
	}
	/**
	 * 根据班级编号查询班级是否存在
	 * @param classId
	 * @return
	 */
	public Classroom queryClassroom(String classId){
		return statusClassStuMapper.queryClassroom(classId);
	}
}
